package com.example.controller.siyunStatisticsController;

import com.example.pojo.siyunStatistics.CarouselMap;
import com.example.service.siyunStatisticsService.CarouselMapService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @Author: 杨佳欣
 * @Description: TODO
 * @DateTime: 2022/12/21 14:12
 * 统计模块中的轮播图部分
 *    对轮播图列表进行一些功能操作
 **/

@RestController
@CrossOrigin
@RequestMapping("/CarouselMap")
public class CarouselMapController {
    @Autowired
    private CarouselMapService carouselMapService;

    //轮播图列表全查
    @RequestMapping("/getCarouselMapListAll")
    public List<CarouselMap> getCarouselMapListAll(){
        return carouselMapService.getCarouselMapListAll();
    }
}
